javascript element by class

91

get element by class name -

var y = document.getElementsByClassName('foo');
var aNode = y[0];

Comments

Submit
0 Comments